package wqh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.DtAlarmEventConfirmDao;
import wqh.domain.DtAlarmEventConfirm;
import wqh.service.DtAlarmEventConfirmService;

import java.util.List;
/**
 * Created by cfs on 2016/12/19.
 */
@Service("dtAlarmEventConfirmService")
public class DtAlarmEventConfirmServicelmpl implements DtAlarmEventConfirmService{
    @Autowired
    private DtAlarmEventConfirmDao dtAlarmEventConfirmDao;

    public int selectCount(){
        return this.dtAlarmEventConfirmDao.selectCount();
    }

    public List<DtAlarmEventConfirm> findAllRecord(){
        return this.dtAlarmEventConfirmDao.findAllRecord();
    }

    public int insertRecord(DtAlarmEventConfirm dtAlarmEventConfirm) {
        return this.dtAlarmEventConfirmDao.insertRecord(dtAlarmEventConfirm);
    }

    public List<DtAlarmEventConfirm> findByTimeRange(Integer start, Integer end) {
        return this.dtAlarmEventConfirmDao.findByTimeRange(start,end);
    }

    public int countByTimeRange(Integer start, Integer end) {
        return this.dtAlarmEventConfirmDao.countByTimeRange(start, end);
    }

    public int deleteById(Integer id) {
        return this.dtAlarmEventConfirmDao.deleteById(id);
    }
}
